﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace SpaceBattle.Graphics
{
    public class TextureLoader
    {
        private static TextureLoader loaderSingleton;

        private TextureLoader()
        {

        }

        public static TextureLoader Textures()
        {
             if (loaderSingleton == null)
             {
                 loaderSingleton = new TextureLoader();
             }

            return loaderSingleton;
        }

        public Texture2D shipTex;
        public Texture2D planetTex;
        public Texture2D sunTex;
        public Texture2D radarDotTex;
        public Texture2D radarTex;

        public void LoadTextures(Game game)
        {
            shipTex = game.Content.Load<Texture2D>("shipTex");
            planetTex = game.Content.Load<Texture2D>("planetTex");
            sunTex = game.Content.Load<Texture2D>("sunTex");
            radarDotTex = game.Content.Load<Texture2D>("radarDotTex");
            radarTex = game.Content.Load<Texture2D>("radarTex");
        }

    }
}
